<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <title>ChoreBoard</title>
    </h:head>
    <h:body>
        <h2>Welcome to ChoreBoard</h2>
        <script>
            #{userController.nulify()}
        </script>

        <h:form>
            User Name <h:inputText value="#{userController.theModel.userName}">
            </h:inputText><br></br><br></br>
            Password <h:inputSecret value="#{userController.theModel.password}">
            </h:inputSecret><br></br><br></br>
            <h:commandButton value="Submit" action="#{userController.login()}">
            </h:commandButton><br/><br/>
            <h:commandButton value="Create New Account" action="CreateAccount.xhtml" />
        </h:form>
    </h:body>
</html>

